import os
password = 'orangepi'
def runsudo(command):
    str = os.system('echo %s | sudo -S %s' % (password,command))
    print(str)
def open():
    runsudo("./open")
    # os.system("sudo ./open")
def close():
     runsudo("./close")
# open()